package com.ruoyi.framework.aspectj;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class UnitScopeAspect {


    /**
     * 机构权限过滤关键字
     */
    public static final String UNIT_SCOPE = "unitScope";

    @Pointcut("@annotation(com.ruoyi.common.annotation.UnitScope)"
            + "|| @within(com.ruoyi.common.annotation.UnitScope)")
    public void dsPointCut() {

    }

    @Before("dsPointCut()")
    public void unit(JoinPoint joinPoint) {

    }


}
